package xgenerator.generators;

import xgenerator.model.ModelMetadata;

/**
 * <p>
 * Title:ExtJSGenerator
 * </p>
 * <p>
 * Description:具体功能见各方法描述
 * </p>
 * <p>
 * Copyright:Copyright (c) 2012
 * </p>
 * 
 * @author <a href="mailto:lishushan@gmail.com">liss</a>
 * @version 1.0
 */
public interface ExtJSGenerator extends JSGenerator, RIAGenerator {
	
	/*
	 * ExtJS
	 */
//	public static final String EXTJS_WINDOW_SUFFER = "Window";
//	public static final String EXTJS_PANEL_SUFFER = "Panel";
//	
//	public static final String CREATE_WINDOW_PREFIX = "Create";
//	public static final String EDIT_WINDOW_PREFIX = "Edit";
//	public static final String VIEW_WINDOW_PREFIX = "View";  //查看详细信息
//	public static final String GRID_PANEL_SUFFER = "Grid" + EXTJS_PANEL_SUFFER;  //表格GRID
//	public static final String TREE_PANEL_SUFFER = "Tree" + EXTJS_PANEL_SUFFER;  //树GRID
	
	
	public String generateCreateWindowCode(ModelMetadata modelMetadata);
	public String generateEditWindowCode(ModelMetadata modelMetadata);
	public String generateViewWindowCode(ModelMetadata modelMetadata);
	public String generateGridPanelCode(ModelMetadata modelMetadata);

}
